package com.bjpowernode.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class Ch23SpringbootWebWarApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(Ch23SpringbootWebWarApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		//参数为当前项目的启动类
		//构建新资源
		return builder.sources(Ch23SpringbootWebWarApplication.class);
	}
}
